<template>
  <div>
    <div class="wrap_fixed">
      <div class="first_a" @click="goTop"><a>返回顶部</a></div>
      <div @click="goSecond"><a>特色优选</a></div>
      <div @click="gothree"><a>猜你喜欢</a></div>
      <div class="ending_a"><a>点击登录</a></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Self",
  methods: {
    goTop() {
      document.body.scrollTop = document.documentElement.scrollTop = 0;
    },
    goSecond() {
      document.body.scrollTop = document.documentElement.scrollTop = 300
    },
    gothree() {
      document.body.scrollTop = document.documentElement.scrollTop = 900
    },

  },
};
</script>

<style>
.wrap_fixed {
  width: 60px;
  height: 215px;
  position: fixed;
  right: 80px;
  top: 40%;
  border-radius: 10px;
  /* display: none; */
}
.wrap_fixed div {
  background: silver;
  display: flex;
  font-size: 18px;
  margin: 0 5px;
}
.wrap_fixed div a {
  margin: 10px 0;
  text-decoration: none !important;
  text-align: center;
}
.wrap_fixed div:hover {
  background: red;
  color: seashell;
}
.wrap_fixed div:hover a {
  color: white !important;
}
.wrap_fixed div {
  cursor: pointer;
}
.first_a {
  border-radius: 5px 5px 0 0;
}
.ending_a {
  border-radius: 0 0 5px 5px;
}
</style>